<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <div class="form">
        <div class="linea_form">
            <div class="text_form">
                <h:outputText value="Asignatura:" />
            </div>
            <div class="caja_form">
                <h:inputText value="#{cursoController.selected.asignatura}"/>
            </div>
        </div>
        <div class="linea_form">
            <div class="text_form">
                <h:outputText value="Curso:" />
            </div>
            <div class="caja_form">
                <h:inputText value="#{cursoController.selected.curso}"/>
            </div>
        </div>
        <div class="linea_form">
            <div class="text_form"></div>
            <div class="caja_form">
                <h:commandButton value="Crear Administrador" action="#{perfilController.create()}"/>
            </div>
        </div>
    </div>
        
    <div>
        Lista de cursos: 
        <h:dataTable value="#{cursoController.items}" var="lis">
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Curso" />
                </f:facet>
                <h:outputText value="#{lis.curso}" styleClass="centrado"/>
            </h:column>

            <h:column>
                <f:facet name="header">
                    <h:outputText value="Asignatura" />
                </f:facet>
                <h:outputText value="#{lis.asignatura}" styleClass="centrado"/>
            </h:column>
        </h:dataTable>
    </div>
</html>